package edu.sctu.practice.class02.lvchang.assign02.circle;

/**
 * Created by Administrator on 2015/10/8.
 */
public class Client {

    public static void main(String[] args) {

        Circle circle1 = new Circle();// Create circle1
        // Display circle1 BEFORE circle2 is created
        System.out.println("*****Before creating circle2*****");
        System.out.println("circle1 is : ");
        printCircle(circle1);

        Circle circle2 = new Circle(5);// Create circle2

        // Display circle1 and circle2 AFTER circle2 was created
        System.out.println("*****After creating circle2*****");
        System.out.println("circle1 is : ");
        printCircle(circle1);
        System.out.println("circle2 is : ");
        printCircle(circle2);
    }
        // Print circle information

    public static void printCircle(Circle c) {
        System.out.println("radius = " + c.getRadius());
        System.out.println("area = " + c.countArea());
        System.out.println("number of Circle objects = " + c.getNumOfObjects());
    }
}

